package com.globallogic.university.people;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.globallogic.university.documents.Curriculum;

public class StudentTest {
	
	@Test
	public void shouldSetCurriculum() {
		// given
		String expected = "Curr1";
		
		Curriculum curr1 = new Curriculum();
		curr1.setCurriculumName(expected);
		
		// when
		Student stud1 = new Student("John", "Doe");
		stud1.setStudentCurriculum(curr1);
		
		// then
		Assert.assertEquals(stud1.getStudentCurriculum().getCurriculumName(), expected);
	}

}
